module.exports = {
    // 插件
    base: '/vuepress-yrm/',
    plugins: {
        '@vuepress/back-to-top': {}
    },
    // 头部
    head: [
        ['meta', { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no' }],
        ['link', { rel: 'icon', href: '/logo/wukong.jpeg' }]
    ],
    theme: 'reco',
    title: '悟空没有尾',
    description: '在一个崇高的目的支持下，不停地学习，即使慢、也一定会获得成功',
    // 主题配置
    themeConfig: {
        // 提取markdown中h2 和 h3 标题，显示在侧边栏上。
        sidebarDepth: 2,
        // 文档更新时间
        lastUpdated: '更新时间',
        // logo
        subSidebar: 'auto',
        logo: '/logo/wukong.jpeg',
        author: 'Yuan Ren Mao',
        authorLink: 'https://blog.csdn.net/tangcv',
        record: '浙ICP备XXXXX号',
        recordLink: 'https://beian.miit.gov.cn/#/Integrated/index',
        // 项目开始时间，只填写年份
        startYear: '2020',
        nav: [
            { text: '博客文档', link: '/guide/', icon: 'reco-document'},
            { text: '更新日志', link: '/version/V0.1/', icon: 'reco-date'},
            { text: '捐赠支持', link: '/donation/', icon: 'reco-account'}
        ],
        sidebar: {
            '/guide/': [
                {
                    title: 'JAVA',
                    collapsable: false,
                    children: [
                        '/guide/JavaBasis',
                        '/guide/Java 容器',
                        '/guide/Java 并发',
                        '/guide/Java 虚拟机',
                        '/guide/面向对象思想',
                        '/guide/Java IO'
                    ]
                },{
                    title: '设计模式',
                    collapsable: false,
                    children: [
                        '/guide/单例',
                        '/guide/简单工厂',
                        '/guide/工厂方法',
                        '/guide/抽象工厂',
                        '/guide/生成器',
                        '/guide/原型模式',
                        '/guide/责任链',
                        '/guide/命令',
                        '/guide/解释器',
                        '/guide/迭代器',
                        '/guide/中介者',
                        '/guide/备忘录',
                        '/guide/观察者',
                        '/guide/状态',
                        '/guide/策略',
                        '/guide/模板方法',
                        '/guide/访问者',
                        '/guide/空对象',
                        '/guide/适配器',
                        '/guide/桥接',
                        '/guide/组合',
                        '/guide/装饰',
                        '/guide/外观',
                        '/guide/享元',
                        '/guide/代理'
                    ]
                },
                {
                    title: '数据库',
                    collapsable: false,
                    children: [
                        '/guide/MySQLAbstract',
                        '/guide/OneDataDefinition',
                        '/guide/TwoSQLBasicGrammar',
                        '/guide/Redis'
                    ]
                },
                {
                    title: '脚本',
                    collapsable: false,
                    children: [
                        '/guide/12306',
                        '/guide/JD'
                    ]
                }
            ],
            '/donation/': [
                '/donation/',
            ],
            '/problem/': [
                '/problem/bookmarks'
            ],
            '/version/': [
                {
                    title: '更新日志',
                    collapsable: false,
                    children: [
                        'V0.1',
                    ]
                }
            ]
        },
        // 假如你的文档仓库和项目本身不在一个仓库：
        docsRepo: 'https://gitee.com/yuanrenmao/vuepress-yrm.git',
        // 假如文档不是放在仓库的根目录下：
        docsDir: 'docs',
        // 默认是 false, 设置为 true 来启用
        editLinks: true,
        // 默认为 "Edit this page"
        editLinkText: '错误反馈'
    }
}
